package cn.rengy.web.framework.role.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.rengy.web.framework.id.IdGenerator;
import cn.rengy.web.framework.sql.DbService;

import lombok.extern.slf4j.Slf4j;

@Service
@Slf4j
public class SysRoleRelService {
	@Autowired
	private DbService dbService;
	@Autowired
	private IdGenerator idGenerator;
	
	/**
	 * 查询允许用户访问的uri授权
	 * @param user_id
	 * @return
	 */
	public List<SysAuthUriPO> getUserAuthUri(Long user_id){
		//TODO 放入缓存
		return this.dbService.queryForBeanList("select_auth_user_uri", SysAuthUriPO.class, user_id);
	}
	
	
	
	
}
